package com.suzj.extraenchantments.enchant.Ench_01;

import com.suzj.extraenchantments.Config;


import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentLifeProtection extends Enchantment {
    public EnchantmentLifeProtection() {
        super(Enchantment.Rarity.RARE, EnchantmentCategory.ARMOR_CHEST, new EquipmentSlot[]{EquipmentSlot.CHEST});
    }

    public int getMaxLevel() {
        if ((Boolean) Config.SERVER.isLifeProtection.get()) {
            return 3;
        }
        return 0;
    }

    public int getMinCost(int p_77321_1_) {
        return 40;
    }

    public int getMaxCost(int p_223551_1_) {
        return 80;
    }
}